package com.yunyike.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.OrderRecepientMappingMapper;
import com.yunyike.model.OrderRecepientMapping;
import com.yunyike.service.IOrderRecepientMappingService;
/**
 * @author zhengqiang.shi
 * 2015年12月25日 上午12:15:06
 */
@Service("orderRecepientMappingServiceImpl")
public class OrderRecepientMappingServiceImpl implements IOrderRecepientMappingService{

	//private Logger log = LoggerFactory.getLogger(OrderRecepientMappingServiceImpl.class);

	@Autowired
	private OrderRecepientMappingMapper orderRecepientMappingMapper;

	/*
	 * 添加订单收货信息
	 */
	public int insert(OrderRecepientMapping record) {
		return orderRecepientMappingMapper.insertSelective(record);
	}
	public OrderRecepientMapping findOrderRecepient(String orderId){
		return orderRecepientMappingMapper.findOrderRecepient(orderId);
	}
}
